<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="/global/jsp-header.jsp"%>
<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html">
		<title>部门列表</title>
		<%@ include file="/global/tablesort-header.jsp"%>
		<script>
	var rs = "${pager.list.size()}";
	rs = ((!rs) ? 0 : parseInt(rs)) + 1;
	var h = rs * 27 + 200;
	$(window.parent.document).find("#queryResult").removeClass("hide");
	$(window.parent.document).find("#queryResultIframe").height(h);
</script>
	</head>
	<body>
		<c:if test="${pager.list.size() > 0}">
			<div class="pagertoleft clearBoth">
				<%@ include file="/global/pager-default.jsp"%>
			</div>
			<table id="myTable" cellspacing="1" class="tablesorter">
				<thead>
					<tr>
						<th>
							菜单ID
						</th>
						<th>
							菜单名称
						</th>
						<th>
							菜单URL
						</th>
						<th>
							排序值
						</th>
						<th>
							是否可用
						</th>
						<th width="150px">
							操作
						</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${pager.list }" var="item">
						<tr menuId=${item.menuId }>
							<td>
								${item.menuId }
							</td>
							<td>
								${item.menuName }
							</td>
							<td>
								${item.url }
							</td>
							<td>
								${item.orderNo }
							</td>
							<td>
								${item.display }
							</td>
							<td>
								<a href="#" onclick="globalEdit(${item.menuId})">编辑</a>
								<a href="#" onclick="globalDelete(${item.menuId })">删除</a>
								<a href="#" onclick="window.parent.editActionUriOperator(${item.menuId })">添加操作</a>
							</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</c:if>
		<c:if test="${pager.list.size() <= 0}">
			<div class="emptyResult">
				抱歉，没有找到相关菜单。
			</div>
		</c:if>
	</body>
</html>
